package com.ykdl.member.views;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.widget.TextView;
/**
 * 绘制带白色边框的textview
 */
public class BorderTextView extends TextView{

	public BorderTextView(Context context) {
		super(context);
	}

	 @Override
	    protected void onDraw(Canvas canvas)
	    {
	        super.onDraw(canvas);
	        Paint paint = new Paint();
	        paint.setColor(android.graphics.Color.WHITE);
	        canvas.drawLine( this.getWidth() - 1, 0, this.getWidth() - 1, this.getHeight() - 1, paint);
	        
	    }

}
